package com.seu.me.test.policy;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @author liangfeihu
 * @since 2019/10/17 15:44
 */
@Data
@ToString
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "PolicyInfo")
public class PolicyInfo {
    private String TransTime;
    private String PolicyNo;
    private String PolicyManageCom;

    @XmlElement(name = "ClaimDetailsInfoList")
    private ClaimData claimData;

    @Data
    @ToString
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ClaimData {
        @XmlElements(value = {@XmlElement(name = "ClaimDetailInfo", type = ClaimDetailInfo.class)})
        private List<ClaimDetailInfo> ClaimDetailsInfoList;
    }

}
